<!-- 这个是使用通义灵码直接搜索：使用vue帮我写一个好看的404页面。给出的答案。 -->
<template>
    <div class="not-found">
      <h1>404</h1>
      <p>Oops! 页面未找到</p>
      <div class="error-code">
        <span class="digit" :class="{ 'animate': true }">4</span>
        <span class="digit" :class="{ 'animate': true }">0</span>
        <span class="digit" :class="{ 'animate': true }">4</span>
      </div>
      <router-link to="/" class="back-home">返回首页</router-link>
    </div>
  </template>
  
  <script>
  export default {
    name: 'NotFound'
  };
  </script>
  
  <style scoped>
  .not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background-color: #f5f5f5;
  }
  
  h1 {
    font-size: 6rem;
    color: #333;
    margin-bottom: 2rem;
  }
  
  p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
  }
  
  .error-code {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: #999;
    margin-bottom: 2rem;
  }
  
  .digit {
    transition: transform 0.5s ease-in-out;
  }
  
  .digit.animate {
    animation: bounce 1s infinite alternate;
  }
  
  @keyframes bounce {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-20px);
    }
  }
  
  .back-home {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
  }
  
  .back-home:hover {
    background-color: #0056b3;
  }
  </style>